/*
 * Login.h
 *
 *  Created on: 2013-2-5
 *      Author: Administrator
 */

#ifndef LOGIN_H_
#define LOGIN_H_
#include <qstring.h>
#include "ModifyUser.h"
#include "../bo/User.h"
#include <qsql.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qwidget.h>
#include <qapplication.h>
#include <qdialog.h>
#include "DirectorMain.h"
#include "ServerDialog.h"
class Login:public QDialog
{
	Q_OBJECT
public:
	Login(QWidget *parent = 0);
	virtual ~Login();
private slots:
	void slt_check();
	void slt_setMessg(const QString &text){messgLabel.setText("");}
	void slt_serverCheck();
private:
	void ui();

	QLabel nameLabel, passwdLabel, messgLabel;
	QLineEdit nameEdit, passwdEdit;
	QPushButton loginButton, exitButton;
	QGridLayout layout;
	QSqlDatabase& db;
};

#endif /* LOGIN_H_ */
